//
//  LastComCollectionViewCell.m
//  BSLCar
//
//  Created by 梁毅 on 15/5/30.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "LastComCollectionViewCell.h"

@implementation LastComCollectionViewCell

- (void)dealloc
{
    [_picture release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.picture = [[UIImageView alloc] init];
    [self.contentView addSubview:self.picture];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.picture.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height);
    self.picture.layer.cornerRadius = 3;
    self.picture.layer.masksToBounds = YES;
    
    self.picture.contentMode = UIViewContentModeScaleAspectFit;
}

@end
